﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true"
    CodeBehind="DataBinding.aspx.cs" Inherits="ControlExplorer.C1AutoComplete.DataBinding" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1AutoComplete"
    TagPrefix="wijmo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        通过“SqlDataSource”数据绑定
    </p>
    <wijmo:C1AutoComplete ID="C1AutoComplete1" runat="server" Width="250px"
        DataSourceID="SqlDataSource1">
    </wijmo:C1AutoComplete>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\C1NWind.mdb;Persist Security Info=True"
        ProviderName="System.Data.OleDb" SelectCommand="SELECT ProductID, ProductName FROM Products">
    </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Description" runat="server">
    <p>
        <strong>C1AutoComplete</strong> 支持数据绑定功能。它可以绑定标签，值和类别字段。
    </p>
    <p>
        打开数据绑定功能需要设置以下属性:
    </p>
    <ul>
        <li><strong>DataSourceID </strong>- 设置数据源 ID 。</li>
        <li><strong>DataCaptionField </strong>-&nbsp; 加载图像标题时设置数据源字段。</li>
        <li><strong>DataLinkUrlField </strong>-&nbsp; 加载链接字段时设置数据源字段。</li>
        <li><strong>DataImageUrlField </strong>-&nbsp; 加载图像URL字段时设置数据源字段。</li></ul>
</asp:Content>
